package net.minecraft.src;

import java.awt.BorderLayout;
import java.awt.Canvas;
import java.awt.Component;
import net.minecraft.client.Minecraft;
import net.minecraft.client.MinecraftApplet;
import net.minecraft.src.PanelCrashReport;
import net.minecraft.src.UnexpectedThrowable;

public class MinecraftAppletImpl extends Minecraft {

   // $FF: synthetic field
   final MinecraftApplet mainFrame;


   public MinecraftAppletImpl(MinecraftApplet var1, Component var2, Canvas var3, MinecraftApplet var4, int var5, int var6, boolean var7) {
      super(var2, var3, var4, var5, var6, var7);
      this.mainFrame = var1;
   }

   public void displayUnexpectedThrowable(UnexpectedThrowable var1) {
      this.mainFrame.removeAll();
      this.mainFrame.setLayout(new BorderLayout());
      this.mainFrame.add(new PanelCrashReport(var1), "Center");
      this.mainFrame.validate();
   }
}
